package gui.visu.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import controls.DataControl;

public class ListenerNbOfCutsRadio implements ActionListener{

	private DataControl dataControl;
	
	private int nbOfCuts;
	
	public ListenerNbOfCutsRadio(DataControl dataControl, int nbOfCuts){
		this.dataControl = dataControl;
		this.nbOfCuts = nbOfCuts;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		dataControl.setNbCutForSelectedCurve(nbOfCuts);
	}

}
